package vcp.views;

import java.util.Observable;
import java.util.Observer;

import vcp.common.AbstractView;
import vcp.common.IView;
import vcp.controllers.ParkingManagementController;
import vcp.gui.forms.ParkingManagementForm;

/**
 * Parking management view 
 *
 */
public class ParkingManagementView extends AbstractView implements IView,Observer{
    ParkingManagementForm parkingManagementForm;
    public ParkingManagementView(){
    	parkingManagementForm = new ParkingManagementForm();
    }
    
	@Override
	public void update(Observable o, Object arg) {
		
		
	}

	public ParkingManagementForm getParkingManagementForm() {
		return parkingManagementForm;
	}

	public void setParkingManagementForm(ParkingManagementForm parkingManagementForm) {
		this.parkingManagementForm = parkingManagementForm;
	}

	@Override
	public void addController(Object obj) {
		this.parkingManagementForm.getBtnResetX().addActionListener((ParkingManagementController)obj);
		this.parkingManagementForm.getBtnResetX().setActionCommand("ResetX");
	}

}
